﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="INamedValue.cs" company="">
//   
// </copyright>
// <summary>
//   The NamedValue interface.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Libium
{
    /// <summary>
    ///   The NamedValue interface.
    /// </summary>
    public interface INamedValue
    {
        #region Public Properties

        /// <summary>
        ///   Gets the name.
        /// </summary>
        string Name { get; }

        /// <summary>
        ///   Gets the value.
        /// </summary>
        object Value { get; }

        #endregion
    }

    /// <summary>
    /// The NamedValue interface.
    /// </summary>
    /// <typeparam name="T">
    /// </typeparam>
    public interface INamedValue<out T> : INamedValue
    {
        #region Public Properties

        /// <summary>
        ///   Gets the value.
        /// </summary>
        new T Value { get; }

        #endregion
    }
}